import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: '/graph/overview',
    },
    {
      path: '/graph/overview',
      name: 'overview',
      component: () => import('../views/graph/overview/index.vue'),
    },
    {
      path: '/graph/add',
      name: 'add',
      component: () => import('../views/graph/add/index.vue'),
    },
    {
      path: '/graph/audit',
      name: 'audit',
      component: () => import('../views/graph/audit/index.vue'),
    },
        {
      path: '/knowledgeLib',
      name: 'knowledgeLib',
      component: () => import('../views/knowledgeLib/index.vue'),
    },
    {
      path: '/qa',
      name: 'qa',
      component: () => import('../views/qa1/index.vue'),
    },
    {
      path: '/tags',
      name: 'tags',
      component: () => import('../views/tags/index.vue'),
    },
  ],
})

export default router
